﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="krj_document_category.aspx.cs" Inherits="krj_document_category" %>
<%@ Register src="~/UserControls/ucFavorite.ascx" tagname="ucFavorite" tagprefix="Kerry" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <script src="../../Scripts/bas_error.js"></script>
    <script src="../../Scripts/GridDataBind.js"></script>
    <script src="../../Scripts/scroll.js"></script>
    <script src="Scripts/krj_document_category.js"></script>
    <style type="text/css">
    /* 強制回應彈出式方塊的可拖曳處 */
    .cssDragHandler
    {
        background-color: #ffffff;
        /*color: #363636;*/
        text-align: center;
        border: 5px double #fff;
        cursor: move;
        font-weight: bolder;
        font-size: 15pt;
    }
    /* 於顯示「強制回應彈出式方塊」時，背景項目所用的樣式 */
    .modalBackground
    {
        /*background-color: #808080;*/
        filter: alpha(opacity=60);
        opacity: 0.60;
    }
    /* 強制回應彈出式對話方塊所用的樣式 */
    .cssModalPopup
    {
        background-color: #ffffff;
        border-width: 3px;
        border-style: solid;
        /*border-color: Gray;*/
        padding: 3px;
        /*color: #AFA500;*/
    }
     .modalPopup {
         background-color:#ffffff;
         border-width:3px;
         border-style:solid;
         /*border-color:Gray;*/
         padding:3px;
         width:350px;
     }
     .modalBackground {
         /*background-color:Gray;*/
         filter:alpha(opacity=70);
         opacity:0.7;
     }
     
     
    .cssModalPopup panel 
    {
        position: absolute;
        top: 50%;
        left:50%;
    }
    </style>
    <div>
    <table class="ConditionTable" id="tbCondition">
        <tr>
            <th colspan ="3"><Kerry:ucFavorite ID="ucFavorite" runat="server" />表單類別維護</th>
      
        </tr>
    
      <tr>
       <td>部門 :
            <asp:DropDownList ID="ddldept" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Text="" Value=""></asp:ListItem>
            </asp:DropDownList>
           <asp:HiddenField ID="hidddldept" runat="server" />
            <asp:HiddenField ID="hiUSER_ID" runat="server" />
        </td>
        <td>類別代號 :
            <%--<asp:DropDownList ID="ddlCategory" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Text="" Value=""></asp:ListItem>
            </asp:DropDownList>
           
            --%>
             <asp:HiddenField ID="hidddlCategory" runat="server" />
             <asp:TextBox ID="txtCategory" maxlength="3" runat="server" ></asp:TextBox>
            <%--<asp:Button ID="btnShowPopup" runat="server" Text="查詢" OnClientClick="showModalPopupViaClient()" />--%>
            <%--<asp:ImageButton ID="img_QTY" ImageUrl="../../Images/Query.gif" runat="server" OnClientClick="showModalPopupViaClient()" />--%>
        </td>
          <td>類別名稱 :
             
            <asp:TextBox ID="txtCategory_NAME" runat="server"></asp:TextBox>
        </td>
      </tr>
      
      
      <tr>
        <td colspan ="3">
            <input id="btn_search" type="button" onclick="btnSearch_Click();" value="搜尋" />
            <asp:Button ID="btn_insert" runat="server" Text="新增" OnClick="btn_insert_Click" />
            <asp:Button ID="btn_edit" runat="server" Text="修改" OnClientClick="return SelectRows();" OnClick="btn_edit_Click" />
            <asp:Button ID="btn_delete" runat="server" Text="刪除" OnClientClick="return SelectRows();"  OnClick="btn_delete_Click" />
            <asp:Button ID="btnView" runat="server" Text="查詢" OnClientClick="return SelectRows();"   CssClass="btn_opration" OnClick="btn_VIEW_Click" />
            <asp:Button ID="btn_exist" runat="server" Text="離開" OnClick="btn_exist_Click" />
            <asp:Label ID="lbl_message" runat="server" EnableViewState="False" ForeColor="Blue"></asp:Label>
        </td>
      </tr>
    </table>
    <br />
       <div style="height: 360px;" onclick='GridEventHandler(event,this.id);' ondbTarget='btnView' class="Document" id="Document"></div>
            <%--換頁區塊--%>
      <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
            <div class="GridTableFooter" id="DocumentPageControl" detl="False" hidecolumn="" GridWidth="20%,80%" textalign="C,C" >
               
                 <div id="DocumentdivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                     <span>&nbsp;第&nbsp;</span>
                       <select id="DocumentdrpPage">
                </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="DocumenttxtPage"></span>

                 <input type="button" id="DocumentbtnFirst" value="第一頁" class="btn_First" />
                <input type="button" id="DocumentbtnPrev" value="上一頁" class="btn_Prepage" />
                <span id="DocumentPages"></span>
                <input type="button" id="DocumentbtnNext" value="下一頁" class="btn_Nextpage" />
                <input type="button" id="DocumentbtnLast" value="最後頁" class="btn_Last" name="Last" />
                &#160;<label style="display:none" id="lblGO_TO1">Go to</label>&#160;<input type="text" style="display:none" id="DocumentPageIndex" class="width_4" maxlength="4" value="" />
                <input style="display:none" type="button" id="DocumentbtnGoto" value="GO" class="btn_Go" name="Go" />
                   <span>&nbsp;總筆數：&nbsp;</span>  <span id="DocumenttxtPageCount"></span>
                 </div>
                
            </div>
  
  </div>
<%-- <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
                                BackgroundCssClass="modalBackground" 
                                TargetControlID="img_QTY" 
                                PopupControlID="panEdit"
                                 CancelControlID="btnClose" 
                                PopupDragHandleControlID="panDrag" >

                   </ajaxToolkit:ModalPopupExtender>--%>
 
     <%-- 強制回應彈出式方塊（ModalPopup）的容器 --%>
           <asp:Panel ID="panEdit" runat="server" CssClass="cssModalPopup" Style="display: none; overflow:scroll; height:200px; width:40%;">
                    <%-- 強制回應彈出式方塊可拖曳的地方 --%>
                    <asp:Panel ID="panDrag" runat="server" CssClass="cssDragHandler">
                        <table>
                            
                            <tr>
                                <td style="text-align: left;">
                                    <asp:Button ID="btnClose" runat="server" Text="離開" OnClientClick= "return hideModalPopupViaClient(); return false;" />
                                    
                                </td>
                            </tr>
                                                  
                      
                            <tr>
                                <td>
                                        <div style="height: 200px;" onclick='GridEventHandler(event,this.id);' ondblclick="select(event,this.id)" class="CATEGORY" id="CATEGORY"></div>
                                        <%--換頁區塊--%>
                                    <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
                                        <div class="GridTableFooter" id="CATEGORYPageControl" detl="False" hidecolumn="" GridWidth="" textalign="C,C,C" >
               
                                                <div id="CATEGORYdivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                                                    <span>&nbsp;第&nbsp;</span>
                                                    <select id="CATEGORYdrpPage">
                                            </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="CATEGORYtxtPage"></span>

                                                <input type="button" id="CATEGORYbtnFirst" value="第一頁" class="btn_First" />
                                            <input type="button" id="CATEGORYbtnprev" value="上一頁" class="btn_Prepage" />
                                            <span id="Span5"></span>
                                            <input type="button" id="CATEGORYbtnNext" value="下一頁" class="btn_Nextpage" />
                                            <input type="button" id="CATEGORYbtnLast" value="最後頁" class="btn_Last" name="Last" />
                                            &#160;<label style="display:none" id="Label4">Go to</label>&#160;<input type="text" style="display:none" id="CATEGORYPageIndex" class="width_4" maxlength="4" value="" />
                                            <input style="display:none" type="button" id="CATEGORYbtnGoto" value="GO" class="btn_Go" name="Go" />
                                                <span>&nbsp;總筆數：&nbsp;</span>  <span id="CATEGORYtxtPageCount"></span>
                                                </div>
                
                                        </div>
  
                                </div> 
                              
                          </td>
                      </tr>
                      
                  </table>
                          
                    </asp:Panel>
            </asp:Panel>
    <script type="text/javascript">
        $("#MainContent_btn_edit").hide();
        $("#MainContent_btn_delete").hide();
        $("#MainContent_btnView").hide();
        </script>
</asp:Content>

